package com.rainy.sys;

import com.rainy.common.constant.Instances;
import com.rainy.sso.client.entity.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author liuqin on 2017/12/13
 */
@FeignClient(Instances.RAINY_SSO)
public interface TestService {
        /**
         * 根据id查询用户信息
         * @param id 用户id
         * @return User
         */
        @RequestMapping(value = Instances.RAINY_SSO_SERVICE_USERS+"/{id}",method = RequestMethod.GET)
        User queryUserById(@PathVariable("id") Long id);
}
